package com.mall.shop.entity.order;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * (OrderItem)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-15 20:34:57
 */
@Getter
@Setter
@TableName("oms_order_item")
@Schema(name = "实体", description = "映射")
public class OrderItem implements Serializable {
    private static final long serialVersionUID = 877093955272630876L;

    @TableId(value = "id" , type = IdType.AUTO)
    @Schema(description = "id")
    private Long id;

    @TableField(value = "order_id")
    @Schema(description = "order_id")
    private Long orderId;
    
    @TableField(value = "order_sn")
    @Schema(description = "order_sn")
    private String orderSn;
    
    @TableField(value = "spu_id")
    @Schema(description = "spu_id")
    private Long spuId;
    
    @TableField(value = "spu_name")
    @Schema(description = "spu_name")
    private String spuName;
    
    @TableField(value = "spu_pic")
    @Schema(description = "spu_pic")
    private String spuPic;
    
    @TableField(value = "spu_brand")
    @Schema(description = "Ʒ")
    private String spuBrand;
    
    @TableField(value = "category_id")
    @Schema(description = "")
    private Long categoryId;
    
    @TableField(value = "sku_id")
    @Schema(description = "")
    private Long skuId;
    
    @TableField(value = "sku_name")
    @Schema(description = "")
    private String skuName;
    
    @TableField(value = "sku_pic")
    @Schema(description = "")
    private String skuPic;
    
    @TableField(value = "sku_price")
    @Schema(description = "")
    private Double skuPrice;
    
    @TableField(value = "sku_quantity")
    @Schema(description = "")
    private Integer skuQuantity;
    
    @TableField(value = "sku_attrs_vals")
    @Schema(description = "")
    private String skuAttrsVals;
    
    @TableField(value = "promotion_amount")
    @Schema(description = "")
    private Double promotionAmount;
    
    @TableField(value = "coupon_amount")
    @Schema(description = "")
    private Double couponAmount;
    
    @TableField(value = "integration_amount")
    @Schema(description = "")
    private Double integrationAmount;
    
    @TableField(value = "real_amount")
    @Schema(description = "")
    private Double realAmount;
    
    @TableField(value = "gift_integration")
    @Schema(description = "")
    private Integer giftIntegration;
    
    @TableField(value = "gift_growth")
    @Schema(description = "")
    private Integer giftGrowth;
    
}

